package com.zq.assistant.app;

import android.preference.PreferenceManager;

import com.zq.assistant.R;

/**
 * Created by zhangqiang on 17-5-10.
 */

public class Config {

    private static String getIP() {
        return PreferenceManager.getDefaultSharedPreferences(App.instance).getString(App.instance.getString(R.string.server_address),"192.168.1.125");
    }

    public static String getHOST() {
        return "http://" + getIP() + ":8080/ZhangQiang";
    }

    public static String getBaseApi() {
        return getHOST() + "/api";
    }
}
